package com.bw.user.bind;

import androidx.databinding.BindingAdapter;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;

/**
 * @author KK
 * @description:
 * @date :2021/11/2 14:28
 */
public class OrderListBindRv {

    @BindingAdapter(value = "adapter")
    public static void bindAdapter(RecyclerView recyclerView, BaseQuickAdapter adapter){
        recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext()));
        recyclerView.setAdapter(adapter);
    }

}
